package com.example.mapper;

import com.example.entity.MI_Table;
import lombok.experimental.Accessors;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.File;
import java.util.List;

/**
 * @author: liu
 * 2022-04-26-20:30
 **/
@SpringBootTest
@RunWith(SpringRunner.class)
public class test {
    @Autowired
    private MedInfoQueryMapper medInfoQueryMapper;

    @Test
    public void test1(){
        System.out.println(new File("").getAbsolutePath());
        System.out.println(System.getProperty("user.dir"));
    }
    @Test
    public void queryKinds(){
        List<MI_Table> mi_tables = medInfoQueryMapper.queryKinds(1002);
        for (MI_Table mi_table : mi_tables) {
            System.out.println(mi_table.getM_kinds());
            System.out.println(mi_table.getKindNum());
        }
    }
}
